<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单</title>
</head>

<body>
    <form action="url地址" method="get" name="注册信息">
        <label for=name>用户名：</label><input type="text" name="username" value="请输入用户名" id="name" minlength="2"
            maxlength="8" /> <br />
        <input type="file" value="选择头像" /> <br />
        <label for="password">密码：</label><input type="password" id="password" minlength="8" maxlength="16" /> <br />
        性别：<input type="radio" name="sex" id="man" /><label for="man">男</label> <input type="radio" name="sex"
            id="woman" /><label for=woman>女</label> <br />
        爱好：<input type="checkbox" name="hobby" checked="checked" id="sleep" /><label for="sleep">睡觉</label> <input
            type="checkbox" name="hobby" id="eat" /><label for="eat">吃饭</label> <br />
        职业：
        <select>
            <option>教师</option>
            <option>公务员</option>
            <option>企业职工</option>
            <option selected="selected">其他</option>
        </select> <br />
        <label for="introduce">自我介绍：</label><textarea rows="5" cols="26" id="introduce"></textarea> <br />
        <label for="phonenumber">手机号：</label><input type="text" name="phonenumber" id="phonenumber" minlength="11"
            maxlength="11" /> <br />
        <label for="number">验证码：</label><input type="text" value="请输入验证码" id="number" /><input type="button"
            value="点击获取验证码" />
        <br />
        <br />
        <input type="reset" value="重置信息" />
        <input type="submit" value="确认提交" />
    </form>
</body>

</html>